#ifndef BOWENVIEW_H
#define BOWENVIEW_H

#include <QQuickPaintedItem>
#include <QList>
#include <QPainter>
#include <math.h>


class BowenView : public QQuickPaintedItem
{
    Q_OBJECT
public:
    BowenView(QQuickItem *parent =NULL);
    virtual ~BowenView();

    Q_INVOKABLE int getMaxValue();

    Q_INVOKABLE void clearValue();

    Q_INVOKABLE void insertValue(double valuse);
signals:


protected:
    void paint(QPainter * painter) ;


private:

    QList<double>  m_currentData;

    int m_allNum;
    int m_allHeight;
};

#endif // BOWENVIEW_H
